<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "dh_project_tel".
 *
 * @property integer $id
 * @property integer $uid
 * @property string $phone
 * @property integer $p_id
 * @property double $num
 */
class DhProjectTel extends \common\components\ActiveRecord2015
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'dh_project_tel';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['uid', 'p_id'], 'integer'],
            [['num'], 'number'],
            [['phone'], 'string', 'max' => 30]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'uid' => 'Uid',
            'phone' => 'Phone',
            'p_id' => 'P ID',
            'num' => 'Num',
        ];
    }
}
